package com.tiancheng.trade.merchant.vo.product;

import lombok.Data;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;


/**
 * 开放接口-商品实体
 */
@Data
public class OpenCreateProductVO {


    /**
     * 商户编码/商户ID
     */
    @NotEmpty(message = "商户编码不允许为空")
    private String merchantCode;
    /**
     * 业务场景
     */
    @NotEmpty(message = "业务场景不允许为空")
    private String orderSource;

    @Valid
    @NotEmpty(message = "商品信息不允许为空")
    private List<Product> products;

    @Data
    public static class Product {
        /**
         * 产品名称
         */
        @NotEmpty(message = "产品名称不允许为空")
        private String productName;
        /**
         * 产品详情
         */
        private String productDetail;

        /**
         * 业务侧产品编码
         */
        @NotEmpty(message = "业务侧产品编码不允许为空")
        private String productCodeBusiness;
        /**
         * 支付渠道编码
         */
        private String paymentChannel;
    }

}
